import { createApp } from 'vue'
import { createPinia } from 'pinia'


import App from './App.vue'
import router from './router'
// element plus
import ElementPlus from "element-plus";

// element icons
import * as Icons from "@element-plus/icons-vue";
// element css
import "element-plus/dist/index.css";
// reset style sheet
import "@/styles/reset.scss";
import "@/styles/common.scss";

import TableCom from './components/TableCom/index.vue';
// import './assets/main.css'
import locale from 'element-plus/lib/locale/lang/zh-cn';
import locale from 'element-plus/es/locale/lang/zh-cn';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs' // 方式1

const app = createApp(App)
// 注册element Icons组件
Object.keys(Icons).forEach(key => {
  app.component(key, Icons[key as keyof typeof Icons]);
});

app.use(createPinia())
app.use(router)
app.use(ElementPlus, { locale })
app.component("TableCom", TableCom)


app.mount('#app')





